package com.distribute;

import com.distribute.pojo.user.Tenant;
import com.distribute.pojo.user.User;

public class ServiceContext {

    private static ServiceContext instance = new ServiceContext();
    private User user;

    private Tenant tenant;

    private String serviceName;

    private ServiceContext() {
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getServiceName() {
        return serviceName;
    }

    public static ServiceContext getInstance() {
        return instance;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public void setTenant(Tenant tenant) {
        this.tenant = tenant;
    }

    public Tenant getTenant() {
        return tenant;
    }

}
